<template>
  <cml-module-item :title="$t('cmlpanel.console_config')"
    v-bind="$attrs"
    v-on="$listeners">
    <a-switch size="small"
      :disabled="false"
      :checked="consolePanel.vuex"
      @change="setConsolePanelVuex" />
  </cml-module-item>
</template>

<script>
import { Switch } from 'ant-design-vue'
import CmlModuleItem from '../cml-module-item'
import { mapState, mapMutations } from 'vuex'

export default {
  name: 'vuexSetting',
  inheritAttrs: false,
  components: {
    ASwitch: Switch,
    CmlModuleItem
  },
  model: {},
  props: {},
  data() {
    return {}
  },
  computed: {
    ...mapState('cmlpanel', ['consolePanel'])
  },
  watch: {},
  created() {},
  mounted() {},
  beforeDestroy() {},
  methods: {
    ...mapMutations('cmlpanel', ['setConsolePanelVuex'])
  }
}
</script>
<style lang="scss" scoped></style>
